package com.dailyblue.java.project.oa.position.controller;

import com.dailyblue.java.project.oa.commons.bean.Position;
import com.dailyblue.java.project.oa.commons.service.PositionService;
import com.dailyblue.java.project.oa.commons.util.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/position")
public class PositionController {
    @Resource
    private PositionService positionService;
    @GetMapping
    public JsonResult<List<Position>> find(){
        return positionService.find();
    }

}
